﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CollapsableStackItemsControl.cs" company="">
//   
// </copyright>
// <summary>
//   The collapseable stack items control.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System;
using System.Windows.Forms;
namespace Libium.Controls
{
    /// <summary>
    /// The collapseable stack items control.
    /// </summary>
    public partial class CollapseableStackItemsControl : StackItemsControl
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="CollapseableStackItemsControl"/> class.
        /// </summary>
        public CollapseableStackItemsControl()
        {
            InitializeComponent();
        }

        #endregion

		  private void ItemsPanel_SizeChanged(object sender, System.EventArgs e)
		  {
			  System.Console.WriteLine();
		  }

		  public virtual void OnDragEnter(object sender, DragEventArgs dragEventArgs)
		  {
			  System.Console.WriteLine();
		  }

		  public virtual void OnDragLeave(object sender, EventArgs eventArgs)
		  {
			  System.Console.WriteLine();
		  }

		  public virtual void OnDragOver(object sender, DragEventArgs dragEventArgs)
		  {
			  System.Console.WriteLine();
		  }

		  public virtual void OnMouseUp(object sender, DragEventArgs dragEventArgs)
		  {
			  System.Console.WriteLine();
		  }

        // public void ExpandAll()
        // {
        // 	foreach (Control control in ItemControls)
        // 	{
        // 		var collapsable = control as ICollapsableControl;
        // 		collapsable.Collapsed = false;
        // 	}
        // }

        // public void CollapseAll()
        // {
        // 	foreach (Control control in ItemControls)
        // 	{
        // 		var collapsable = control as ICollapsableControl;
        // 		collapsable.Collapsed = true;
        // 	}
        // }
    }
}